/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package main;

import java.sql.SQLException;
import sql.SQLInterface;

/**
 *
 * @author Lu
 */
public class TestSQLInsert {
 public static void main(String[] args) throws SQLException {
     SQLInterface.init();
     String[] tables = new String[6];
     tables[5] = "elementtype";
     tables[4] = "document";
     tables[3] = "element";
     tables[2] = "word";
     tables[1] = "wordposition";
     tables[0] = "statdocelement";
     SQLInterface.cleanDatabase(tables);
     SQLInterface.addElementType("BALLADE");
     SQLInterface.addElementType("P");
     SQLInterface.addDocument("dx001.xml");
     SQLInterface.addElement("/BALLADE/P[1]", "P", "dx001.xml");
     SQLInterface.addWord("promena", 1, 1, 1);
     SQLInterface.addFullWord("promena", "promenait", "dx001.xml","/BALLADE/P[1]", 26);
     SQLInterface.addWord("cool", 1, 1, 1);
     SQLInterface.addFullWord("cool", "cool", "dx001.xml", "/BALLADE/P[1]", 3);
//     SQLInterface.addFullWord("MONTAGN","MONTAGNE", "P", 5 );


 }
}
